package com.ruoyi.bond.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bond.mapper.BondZhCovInfoThsMapper;
import com.ruoyi.bond.domain.BondZhCovInfoThs;
import com.ruoyi.bond.service.IBondZhCovInfoThsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 可转债详情-同花顺Service业务层处理
 * 
 * @author leng.xz
 * @date 2024-05-17
 */
@Service
public class BondZhCovInfoThsServiceImpl implements IBondZhCovInfoThsService 
{
    @Autowired
    private BondZhCovInfoThsMapper bondZhCovInfoThsMapper;

    /**
     * 查询可转债详情-同花顺
     * 
     * @param id 可转债详情-同花顺ID
     * @return 可转债详情-同花顺
     */
    @Override
    public BondZhCovInfoThs selectBondZhCovInfoThsById(Long id)
    {
        return bondZhCovInfoThsMapper.selectBondZhCovInfoThsById(id);
    }

    /**
     * 查询可转债详情-同花顺列表
     * 
     * @param bondZhCovInfoThs 可转债详情-同花顺
     * @return 可转债详情-同花顺
     */
    @Override
    public List<BondZhCovInfoThs> selectBondZhCovInfoThsList(BondZhCovInfoThs bondZhCovInfoThs)
    {
        return bondZhCovInfoThsMapper.selectBondZhCovInfoThsList(bondZhCovInfoThs);
    }

    /**
     * 新增可转债详情-同花顺
     * 
     * @param bondZhCovInfoThs 可转债详情-同花顺
     * @return 结果
     */
    @Override
    public int insertBondZhCovInfoThs(BondZhCovInfoThs bondZhCovInfoThs)
    {
        return bondZhCovInfoThsMapper.insertBondZhCovInfoThs(bondZhCovInfoThs);
    }

    /**
     * 修改可转债详情-同花顺
     * 
     * @param bondZhCovInfoThs 可转债详情-同花顺
     * @return 结果
     */
    @Override
    public int updateBondZhCovInfoThs(BondZhCovInfoThs bondZhCovInfoThs)
    {
        return bondZhCovInfoThsMapper.updateBondZhCovInfoThs(bondZhCovInfoThs);
    }

    /**
     * 删除可转债详情-同花顺对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteBondZhCovInfoThsByIds(String ids)
    {
        return bondZhCovInfoThsMapper.deleteBondZhCovInfoThsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除可转债详情-同花顺信息
     * 
     * @param id 可转债详情-同花顺ID
     * @return 结果
     */
    @Override
    public int deleteBondZhCovInfoThsById(Long id)
    {
        return bondZhCovInfoThsMapper.deleteBondZhCovInfoThsById(id);
    }
}
